$(function() {
	//提交表单
	$.fn.SubmitForm = function(url) {
		$(this).click(function() {
			var params = $('form').serializeArray();
			var postdata = {};
			$.each(params, function(i, v) {
				postdata[v.name] = v.value;
			});
			//密码MD5加密
			postdata.password = $.md5(postdata.password);

			var postData = JSON.stringify(postdata)
			HttpPost(url, postData, function(data) {
			});
			return false;
		});
	}

})